package com.example.boot.controller

import com.example.boot.service.AccountService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/account")
class AccountController {
    @Autowired
    private lateinit var accountService: AccountService

    @PostMapping("/check")
    fun checkAccounts(@RequestBody accounts: MutableList<Int>): MutableMap<Int, String> {
        return accountService.checkAccounts(accounts)
    }
}